import request from '../request.js'
export default{
	// 登录
	login(data){
		return request({
			url:'/member/login',
			method:'POST',
			data
		})
	},
	//获取短信验证
	getdxCode(data){
		return request({
			url:'/message/send',
			header:{
				'content-type':'application/x-www-form-urlencoded',
			},
			method:'POST',
			data
		})
	},
	// 注册
	register(data){
		return request({
			url:'/member/register',
			method:'POST',
			data
		})
	},
	// token验证获取用户信息
	getUserInfo(token,data){
		return request({
			header:{
				'Authorization':token
			},
			url:'/member/info',
			method:'POST',
			data
		})
	}
}